<template>
  <view class="container">
    <view class="contain-wrap">
      <view class="row-item">
        <view class="label">负责人类型:</view>
        <view class="value">{{
          detail.trusteeship == '1' ? "托管人" : "房主本人"
        }}</view>
      </view>

      <view class="row-item" v-if="detail.trusteeship == '1'">
        <view class="label">与房主关系:</view>
        <view class="value">{{ detail.userType }}</view>
      </view>

      <view class="row-item">
        <view class="label">姓名:</view>
        <view class="value">{{ detail.userName }}</view>
      </view>

      <view class="row-item">
        <view class="label">联系电话:</view>
        <view class="value">{{ detail.phone }}</view>
      </view>

      <view class="row-item">
        <view class="label">国籍:</view>
        <view class="value">{{ detail.nationality }}</view>
      </view>
      <view class="row-item">
        <view class="label">证件类型:</view>
        <view class="value">{{ detail.idType }}</view>
      </view>
      <view class="row-item">
        <view class="label">证件号码:</view>
        <view class="value">{{ detail.idCard }}</view>
      </view>

      <view class="row-item">
        <view class="label">民族:</view>
        <view class="value">{{ detail.nation }}</view>
      </view>
    </view>
    <yy-watermark></yy-watermark>
  </view>
</template>

<script>
  export default {
    data() {
      return {
        detail: {},
      };
    },
    onLoad(options) {
      // this.get_dict();
      console.log(options)
      this.detail = JSON.parse(options.item);
    },
    onShow() {},
    methods: {},
  };
</script>

<style scoped lang="scss">
  .contain-wrap {
    width: 100%;
    height: 665rpx;
    background: #ffffff;
    border-radius: 26rpx;
    padding: 20rpx;

    .row-item {
      height: 94rpx;
      display: flex;
      align-items: center;
      justify-content: space-between;
      border-bottom: 1rpx solid #ebebeb;

      .label {
        font-family: PingFang SC, PingFang SC;
        font-weight: 500;
        font-size: 28rpx;
        color: #666666;
      }

      .value {
        flex: 1;
        text-align: right;
        font-family: PingFang SC, PingFang SC;
        font-weight: bold;
        font-size: 28rpx;
        color: #333333;
      }
    }
  }
</style>